package com.education.welco.mapper;

import com.education.welco.pojo.OrderPaperQuestion;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 试卷试题关联表 数据层
 *
 * @author d
 * @date 2021-03-04 15:45:19
 */
@Repository
public interface OrderPaperQuestionMapper {

    //查询试卷试题关联表信息
    public OrderPaperQuestion selectOrderPaperQuestionById(Integer paperId);

    // 查询试卷试题关联表列表
    public List<OrderPaperQuestion> selectOrderPaperQuestionList(OrderPaperQuestion orderPaperQuestion);

    // 新增试卷试题关联表
    public int insertOrderPaperQuestion(OrderPaperQuestion orderPaperQuestion);

    //修改试卷试题关联表
    public int updateOrderPaperQuestion(OrderPaperQuestion orderPaperQuestion);

    //删除试卷试题关联表
    public int deleteOrderPaperQuestionById(Integer paperId);

    // 批量删除试卷试题关联表
    public int deleteOrderPaperQuestionByIds(String[] paperIds);

    void insertBatch(List<OrderPaperQuestion> orderPaperQuestions);
}